home *** CD-ROM | disk | FTP | other *** search
-
-
- >>>Has anyone got a util to convert AMOS source into an ASCII file?
- >>>Is it possible to write an AMOS program which can in turn load a source
- and
- >>> save it as ASCII?
-
- > > Load your prg in the editor. Select all from the block menu. Store from
- >> block menu. Save block as ASCII. Tada.
-
- >I think I wanted something to do it on the fly. He said he was looking for
- >a tool to add to DOpus and display the sources as ASCII files, without
- >storing the ASCII files on the hd.
-
- Thats exactly what I meant.
- I attempted to start writing a conversion program lst night but didn't get
- very far.
- I was trying to get it to just do REM statements initially but had trouble
- splitting up the file into the bits I wanted.
-
- So far I have got a header of 20 chars (using AMOS Pro v2 - probably
- different on other versions) and a trailer of 10(ish) chars.
-
- If I strip these bits of I am left with the main program in some encrypted
- format.
- Coding a small program...
-
- Rem a
- Rem b
-
- ...shows me that the HEX string for the REM statement.
- Now if my program is just 1 line then I get approx 8 character back which
- seem to map to the REM followed by some junk followed by the actual remark
- (a).
- With the program above I would expect just for the string to be repeated
- with b replacing a and maybe a decimal 10 and 13 stuck inbetween - no such
- luck though!
- It seems that it just sticks what it likes in the file.
-
- At the rate I am going its not looking very promising - it would probably
- take me a couple of years to find out the format.
-
- Do I recall correctly that the source for Amos is now PD?
- If so, does anyone know where I could get it.
- I think if I had the source then I could just pull out the LOAD, BLOCK ALL
- and SAVE AS ASCII commands and stick them into an executable .
-
-
-
-
-
-
-